package com.flyco.modules.stm.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyco.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 门店调拨单明细
 * @Author: flyco
 * @Date:   2020-10-30
 * @Version: V1.0
 */
@Data
@TableName("stm_transfer_item")
@ApiModel(value="stm_transfer对象", description="门店调拨单")
public class StmTransferItem implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**调拨单id*/
    @ApiModelProperty(value = "调拨单id")
	private Long transferId;
	/**商品id*/
    @Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
	@Dict(dictTable ="pms_product",dicText = "name",dicCode = "id")
	private Long productId;
	/**货号*/
	@Excel(name = "货号", width = 15)
	@ApiModelProperty(value = "货号")
	private String productSn;
	/**库存类别*/
	@Excel(name = "库存类别", width = 15)
	@ApiModelProperty(value = "库存类别")
	@Dict(dicCode = "stock_type_transfer")
	private String stockType;
	/**调拨数量*/
    @Excel(name = "调拨数量", width = 15)
    @ApiModelProperty(value = "调拨数量")
	private Integer productQty;
	/**发货数量*/
	@Excel(name = "发货数量", width = 15)
	@ApiModelProperty(value = "发货数量")
	private Integer sendQty;
	/**收货数量*/
    @Excel(name = "收货数量", width = 15)
    @ApiModelProperty(value = "收货数量")
	private Integer receiveQty;
	/**创建人*/
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**更新人*/
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;
}
